![]() | Form Rules | Multi-instance Dialogs | ![]() |
This feature is only supported in the 'Ajax .Net Web Browser Deployemnt' and the 'Web Browser Deployment' types.
Validation code can be associated with individual dialog input controls using the Validation property. The property has an editor that is opened by clicking on the property's value, this will be (none) if it is empty or (commands) if there is code already present. The code is used to check the value of the control that is entered at runtime and is fired when the control loses focus or the user tries to leave the dialog, for example via the 'OK' button.
The code should return either @Return 0 or @Return 'an error string' to signify failure of the validation code, and @Return 1 to signify success.
At runtime a failure of the validation code is indicated by the control being highlighted with a red border.
If the validation code returns a string then this will also be displayed next to the control in addition to the red border of the control when the code fails.